/*
 * Copyright 2013-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.xiaohong.business;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
//import feign.Request$Options;
//import feign.slf4j.Slf4jLogger;

/**
 * @author xiaohong
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  //排除掉数据库自动加载，因为这里不需要使用数据库
//@EnableFeignClients(basePackages = {"com.xiaohong.account.feign","com.xiaohong.order.feign","com.xiaohong.storage.feign"})
@EnableFeignClients(basePackages = {"com.xiaohong.account.feign","com.xiaohong.order.feign","com.xiaohong.storage.feign"})
@EnableDiscoveryClient(autoRegister = false)
@ComponentScan(basePackages = {
		"com.xiaohong.account.fallback",
		"com.xiaohong.storage.fallback",
		"com.xiaohong.order.fallback",
		"com.xiaohong.business"})
public class BusinessApplication {

	public static void main(String[] args) {
		SpringApplication.run(BusinessApplication.class, args);
	}

}
